﻿using Microsoft.AspNetCore.Mvc;
using ShenNius.Sys.API.Domain.ValueObjects;
using System.Threading.Tasks;

namespace ShenNius.Mvc.Admin.Controllers
{
    public class HomeController : Controller
    {
        [HttpGet("shennius-master.html")]
        //必须设置下面该路由，不然报错404
        [Route("/")]
        public async Task<IActionResult> Index()
        {
            var value = await SysSetting.ReadAsync();
            return View(value);
        }
        [HttpGet("error.html")]
        public IActionResult Error()
        {
            return View();
        }
    }
}
